Animal-Plant piping class draft#986
Conversation
At the moment, the PlantsModel isn't exposing very much at the plant functional type level through
The main worry I have right now is the stoichiometry. Each cohort will have stochiometric ratios. We can take the mass weighted average across resources to give "average" leaves/fruit - either across all PFTs like in the I don't have strong feelings about the two alternative implementations but I think your intuition about the integrated one is right. We're going to have to have that logic somewhere and I think it is going to be cleaner to set up resources where there is an established mapping between the existing animal foraging requirements and the available resources. Minor things:
|
|
Ah interesting, so for now I can ignore PFTs for everything but propagules? I am happy to do the easiest and simplest version right now and worry about more guided foraging patterns in the future. I will go with the resource-type integrated classes for now then. |
…8-animal---animal-plant-piping-update
…t_resource_in_territory method.
jacobcook1995
left a comment
There was a problem hiding this comment.
Approach to fungal fruiting bodies looks sensible to me, I just had a couple of queries
| # Build resource collections based on diet flags | ||
| plant_list: list[Resource] = [] | ||
| prey_list: list[AnimalCohort] = [] | ||
| # mushroom_list: list[Resource] = [] |
There was a problem hiding this comment.
why has this be added commented out?
| cohort.forage_cohort( | ||
| plant_list=plant_list, | ||
| animal_list=prey_list, | ||
| mushroom_list=[], |
There was a problem hiding this comment.
I think you would want to populate this based on self.fungal_fruiting_bodies
There was a problem hiding this comment.
(or something similar)
Description
There are two basic options that I'm exploring for making this work.
I suspect that the second approach will be more computationally effective. Most trophic relationships are done by resource type, not functional type. This makes it easier to sort through, say, a dictionary of fallen seeds in a grid cell to find the appropriate seeds than sorting through a list of plant functional types to see if each has seeds and then if you can even eat those specific seeds.
Feedback I am looking for:
`
Fixes # (issue)
Type of change
Key checklist
pre-commitchecks:$ pre-commit run -a$ poetry run pytestFurther checks